package com.sanyang.pda.ui.manualdelivery;

import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.sanyang.pda.adapter.ManualDeliveryDetailAdapter;
import com.sanyang.pda.bean.ManualDeliveryDetailBean;
import com.sanyang.pda.contract.ManualDeliveryDetailContract;
import com.sanyang.pda.presenter.ManualDeliveryDetailPresenter;
import com.wangshen.base.ui.mvp.base.ui.BaseMvpFragment;
import com.wangshen.projectbase.R;

import java.util.ArrayList;

import butterknife.BindView;


public class DeliveryDetailFragment extends BaseMvpFragment<ManualDeliveryDetailPresenter> implements ManualDeliveryDetailContract.View {


    @BindView(R.id.rv_list)
    RecyclerView rvList;
    private String entryNo;

    private ArrayList<ManualDeliveryDetailBean> data = new ArrayList<>();
    private ManualDeliveryDetailAdapter deliveryDetailAdapter;

    public DeliveryDetailFragment(String entryNo) {
        this.entryNo = entryNo;
    }

    @Override
    public void initLinsenterner() {

    }

    @Override
    public void getData() {

    }


    @Override
    public int getViewId() {
        return R.layout.fragment_delivery_detail;
    }

    @Override
    public void initView() {
        rvList.setLayoutManager(new LinearLayoutManager(mContext));
        deliveryDetailAdapter=new ManualDeliveryDetailAdapter(R.layout.item_delivery_detail,new ArrayList<>());
        rvList.setAdapter(deliveryDetailAdapter);
    }

    @Override
    public ManualDeliveryDetailPresenter getPresenter() {
        return new ManualDeliveryDetailPresenter();
    }





}
